﻿<UserControl x:Class="AtletIS.Shared.WpfControls.ChipResultBox"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="44" d:DesignWidth="590" FontFamily="Trebuchet MS">

    <Border
        CornerRadius="4"
        BorderThickness="1" BorderBrush="SteelBlue" Background="White"
        Margin="5 2">

        <Border.RenderTransform>
            <SkewTransform CenterX="0" CenterY="22" AngleX="-14" AngleY="0" />
        </Border.RenderTransform>

        <Grid>

            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="5"/>
                <ColumnDefinition Width="60"/>
                <ColumnDefinition Width="50"/>
                <ColumnDefinition Width="50"/>
                <ColumnDefinition Width="255" />
                <ColumnDefinition Width="150"/>
            </Grid.ColumnDefinitions>

            <Border
                Grid.Column="1"
                CornerRadius="4"
                BorderBrush="LightGray"
                BorderThickness="2"
                Margin="8 4"
                Background="Yellow">

                <TextBlock 
                    Name="txtOrder" 
                    FontSize="20"
                    Foreground="SteelBlue"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Center">
                    
                    <TextBlock.RenderTransform>
                        <SkewTransform CenterX="0" CenterY="14" AngleX="14" AngleY="0" />
                    </TextBlock.RenderTransform>

                </TextBlock>
            </Border>

            <Image
                Grid.Column="2"
                Name="iCountry"
                Width="34"
                Height="24">

                <Image.RenderTransform>
                    <SkewTransform CenterX="0" CenterY="14" AngleX="14" AngleY="0" />
                </Image.RenderTransform>

                <Image.BitmapEffect>
                    <DropShadowBitmapEffect Color="SteelBlue" Direction="320" ShadowDepth="1" Opacity="1" Softness="1" />
                </Image.BitmapEffect>

            </Image>

            <TextBlock
                Grid.Column="3"
                Name="txtStartNumber"
                Foreground="SteelBlue"
                FontSize="16"
                Margin="2"
                VerticalAlignment="Center"
                HorizontalAlignment="Center">
                
                <TextBlock.RenderTransform>
                    <SkewTransform CenterX="0" CenterY="14" AngleX="14" AngleY="0" />
                </TextBlock.RenderTransform>

            </TextBlock>

            <TextBlock
                Grid.Column="4"
                Name="txtName"
                Foreground="SteelBlue"
                FontSize="24"
                Margin="2"
                VerticalAlignment="Center">
                
                <TextBlock.RenderTransform>
                    <SkewTransform CenterX="0" CenterY="14" AngleX="14" AngleY="0" />
                </TextBlock.RenderTransform>

            </TextBlock>

            <!-- txtResult -->
            <Border
                Grid.Column="5"
                CornerRadius="4"
                BorderBrush="LightGray"
                BorderThickness="2"
                Margin="4"
                Background="Yellow">

                <TextBlock
                    Name="txtResult"
                    Foreground="SteelBlue"
                    FontSize="20"
                    Margin="2"
                    VerticalAlignment="Center"
                    HorizontalAlignment="Center">
                    
                    <TextBlock.RenderTransform>
                        <SkewTransform CenterX="0" CenterY="14" AngleX="14" AngleY="0" />
                    </TextBlock.RenderTransform>

                </TextBlock>

            </Border>

        </Grid>

    </Border>

        
</UserControl>
